name: mkinitcpio
check_this_dir: /lib/initcpio
enable_lvm:
  - echo "HOOKS+=(lvm2)" >> /target/etc/mkinitcpio.conf
enable_luks:
  - echo "HOOKS+=(keyboard keymap encrypt)" >> /target/etc/mkinitcpio.conf
commands:
  - mkinitcpio -g /boot/initramfs-linux.img
  - mkinitcpio -g /boot/initramfs-linux-fallback.img
